<template>
  <div>
    <h2>我是About的内容</h2>
  </div>
</template>

<script>
export default {

  // 通过路由规则，进入该组件时被调用
  beforeRouteEnter(to,from,next){
      if (to.meta.isAuth) {
        if (localStorage.getItem('school') === 'jin') {
          next()
        } else {
          alert('无权限')
        }
      } else {
        next()
      }
  },
  // 通过路由规则，离开该组件时被调用
  beforeRouteLeave(to,from,next){
    console.log('beforeRouteLeave')
    next()
  },


  name: "About",
  description: '',
  mixins: [],
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  filters: {},
  created() {
  },
  mounted() {
  },
  destroyed() {
  },
  beforeDestroy() {
    console.log('about即将被销毁')
  },
  methods: {}
}
</script>

<style scoped>

</style>